package io.github.talelin.latticy.dto.oms.inbound_order;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.List;

/**
 * @authoer:wulongbo
 * @createDate:2022/7/19
 * @description:
 */
@Data
public class ReceivingPackageDTO {
    /**
     * 箱子编号id
     */
    @NotBlank(message = "{packages-no.id.not-empty}")
    private String packageNo;

    /**
     * 本次接收箱数
     */
    @Positive
    @NotNull(message = "{inbound-order.receiveNum.not-empty}")
    private Integer receiveNum;

    @Positive
    private Integer specimen;

    @PositiveOrZero
    private Integer damaged;

    @Valid
    private List<ReceivingSkuDTO> skus;
}
